#define _CRT_SECURE_NO_WARNINGS  1

#include"List.h"

int main()
{
	ListNode* plist = LTInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPushBack(plist, 5);
	ListPrint(plist);
	ListPushFront(plist, 6);
	ListPushFront(plist, 7);
	ListPushFront(plist, 8);
	ListPopBack(plist);
	ListPopBack(plist);
	ListPopFront(plist);
	ListPopFront(plist);
	ListPrint(plist);

	ListNode* pos = ListFind(plist, 2);
	if (pos)
	{
		ListErase(pos);
		pos = NULL;
	}
	ListPrint(plist);

	ListDestory(plist);
}